package com.bailan.foreat.vo;


import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Document(indexName = "esstore", shards = 3, replicas = 2)
@Data
public class EsStore implements Serializable {

    @Id
    private Integer id;

    @Field(name = "storeName", analyzer = "ik_max_word", searchAnalyzer = "ik_max_word", type = FieldType.Text)
    private String storeName;

    @Field(type = FieldType.Keyword)
    private String detail;

    @Field(type = FieldType.Keyword)
    private String storeImg;

    @Field(type = FieldType.Integer)
    private Integer sellerId;

//    @Field(name = "storeType", analyzer = "ik_max_word", searchAnalyzer = "ik_max_word", type = FieldType.Integer)
//    private Integer storeType;

    @Field(type = FieldType.Integer)
    private Integer addressId;

    @Field(type = FieldType.Integer)
    private Integer status;

    @Field(name = "typeName", analyzer = "ik_max_word", searchAnalyzer = "ik_max_word", type = FieldType.Text)
    private String typeName;

    @Field(type = FieldType.Text)
    private String address;


}


